<%@page import="com.yoyo.schedule.ScheduleContext" %>
<%@page import="java.io.StringWriter" %>
<%@ page contentType="text/html; charset=GB2312" %>
<%
    if (ScheduleContext.isInitial() == false) {
        response.sendRedirect("config.jsp");
    }
%>
<html>
<body style="font-size:12px;">
<%
    String path = request.getParameter("path");
    if (path == null) {
        path = ScheduleContext.getStrategyDataManagerWithZooKeeperManager().getRootPath();
    }
    StringWriter writer = new StringWriter();
    ScheduleContext.getStrategyDataManagerWithZooKeeperManager().printTree(
            path, writer, "<br/>");
%>
<pre>
<%=writer.getBuffer().toString()%>
</pre>
</body>
</html>
